package com.yanqu.road.entity.activity.zhenhuan.config;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.utils.property.Property;
import com.yanqu.road.utils.property.PropertyHelper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_s_activity_zhenhuan_npc", desc = "甄嬛传第二阶段npc表")
public class ZhenHuanNpcConfig extends DataObject {
    @FieldTypeAnnotation(select = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "妃子id", isIndex = true)
    private int id;
    @FieldTypeAnnotation(desc = "名称")
    private String name;
    @FieldTypeAnnotation(desc = "形象")
    private String icon;
    @FieldTypeAnnotation(desc = "妃位")
    private int level;

    private List<List<Property>> rewardList = new ArrayList<>();

    public ZhenHuanNpcConfig(ResultSet rs) throws SQLException {
        this.activityId = rs.getInt("activityId");
        this.id = rs.getInt("id");
        this.name = rs.getString("name");
        this.icon = rs.getString("icon");
        this.level = rs.getInt("level");
    }

    public int getActivityId() {
        return activityId;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getIcon() {
        return icon;
    }

    public int getLevel() {
        return level;
    }

    public List<List<Property>> getRewardList() {
        return rewardList;
    }
}
